package com.huatai.datacenter.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Lion
 * @date 2023/3/24  9:19
 */
@Data
@TableName("tb_topic_info")
public class TopicInfoEntity extends BaseEntity {

	@TableField("topicName")
	@ApiModelProperty("主题名称")
	private String topicName;

	@TableField("partition")
	@ApiModelProperty("分区")
	private Integer partition;

	@TableField("replication")
	@ApiModelProperty("复制因子")
	private Short replication;

	@TableField("ttl")
	@ApiModelProperty("删除保留数据的时间")
	private Long ttl;

	@TableField("config")
	@ApiModelProperty("配置信息")
	private String config;

	@TableField("clusterId")
	@ApiModelProperty("集群id")
	private String clusterId;

	@TableField("comments")
	@ApiModelProperty("注解")
	private String comments;

	@TableField("fileSize")
	@ApiModelProperty("文件大小")
	private Long fileSize;

	@TableField(exist = false)
	private ClusterEntity cluster;

}
